import request from '@/utils/request'

export function authCode(data) {
  return request({
    url: '/manage/captcha/arithmetic',
    method: 'post',
    noAuth: true,
    data
  })
}

export function login(data) {
  return request({
    url: '/manage/auth/login',
    method: 'post',
    noAuth: true,
    data
  })
}

export function getInfo() {
  return request({
    url: '/manage/user',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/manage/auth/logout',
    method: 'get'
  })
}
